﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="du_an.aspx.cs" Inherits="WebHousingInfo.du_an" %>

<%@ Register Src="~/Controls/Header.ascx" TagName="Header1" TagPrefix="Header" %>
<%@ Register Src="~/Controls/Timkiemtrentrangchu.ascx" TagName="TK" TagPrefix="Timkiemtrentrangchu" %>
<%@ Register Src="~/Controls/NhaDatBanChoThueHaiNamMuoiTrai.ascx" TagName="tm" TagPrefix="NhaDatBanChoThueHaiNamMuoiTrai" %>
<%@ Register Src="~/Controls/Quangcaotrangchutrai.ascx" TagName="qc" TagPrefix="Quangcaotrangchutrai" %>
<%@ Register Src="~/Controls/Quangcaophai.ascx" TagName="qcPHAI" TagPrefix="Quangcaophai" %>
<%@ Register Src="~/Controls/KhongGianSong.ascx" TagName="KGS" TagPrefix="KhongGianSong" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MN" TagPrefix="MenuFooter" %>
<%@ Register Src="~/Controls/Footer.ascx" TagName="FT" TagPrefix="Footer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Danh sách dự án</title>
</head>
<body>
    <form id="form1" runat="server">
        <div id="uni_wrapper">
            <Header:Header1 ID="Header" runat="server" />
	        <div id="uni_main">
		        <div id="content" class="clearfix">
			        <div id="group_6">
				        <div id="group_7">	
					        <Timkiemtrentrangchu:TK ID="Timkiemtrentrangchu" runat="server" />
					        <NhaDatBanChoThueHaiNamMuoiTrai:tm ID="NhaDatBanChoThueHaiNamMuoiTrai" runat="server" />
					        <Quangcaotrangchutrai:qc ID="Quangcaotrangchutrai" runat="server" />
					        <!---->
				        </div>
				        <div id="group_4">
				            <div>
				                <a href="Home.aspx">Trang Chủ</a>>><a href="du_an.aspx">Dự Án</a>
				                <asp:Label ID="lblduan" runat="server" Text=""></asp:Label>
				                <p style="float:right"><a href="dangtin_duan.aspx">Đăng Dự Án Mới</a></p>
				            </div>
				            <div class="BoxFindDevelopment mar_t10">
	                            <div class="BgTitleHomeCity">
		                            <div class="TitleHomeCity Bold_669"><h1 style="font-size:18px;">Dự án theo từng loại</h1>
		                            </div>
	                            </div>
	                            <div class="BorContentHomeCity">
		                            <div class="SimilarHomeSale">
			                            <div class="CityManila">
			                            <% var obCateProject = HousingInfo.Library.CategoryBOList.GetCategoryBOList_ByType(false, false, true, false, true);
			                                foreach(var detail in obCateProject)
                                            {%>			                            
				                            <div class="NameCity"><a href="du_an.aspx?id=<%=detail.CategoryID %>" class="LinkCity"><%=detail.CategoryName %><font class="Normal_b9b"> (<%=HousingInfo.Library.ProjectBOList.DemSoDuAnTheoDanhMuc(detail.CategoryID) %>)</font></a></div>
				                            <%} %>
			                            </div>
		                            </div>
		                            <div class="clr_both"></div>
	                            </div>
                            </div>
				            
				        <!--b danh sach tinh-->
			            <div class="BoxFindDevelopment mar_t10">
                            <div class="BgTitleHomeCity">
	                            <div class="TitleHomeCity Bold_669"><h1 style="font-size:18px;">Danh sách Dự Án</h1>
	                            </div>
                            </div>
					        <div id="danhsachtin">
					        <% 
                                var objectproject = getdatasource();
                                if (objectproject != null)
                                {
                                    foreach (var obnoithat in objectproject)
                                    {%>
						        <div class="one_news">
							        <div class="content" style="width:490px;">
								        <div class="title" style="width:490px;"><p><a href="chitiet_duan.aspx?id=<%=obnoithat.ProjectID %>"><%=obnoithat.Name%></a></p><span><a href="chitiet_duan.aspx?id=<%=obnoithat.ProjectID %>">chi tiết</a></span></div>
								        <div class="data" style="width:470px;">
								        <% if (obnoithat.Description.Length > 150)
                                        { %>
                                             <%=obnoithat.Description.Substring(0, 149)%> ...
                                            <%}
                                       else
                                       { %>
                                        <%=obnoithat.Description%>
                                        <%} %></div>
							        </div>
						        </div>	
						        <%}
                                }%>								
					        </div>
					    </div>
					        <% if (objectproject != null && objectproject.Count > 0)
                                { %>
                              <div id="link">
                                    <asp:Label ID="lblpaging" runat="server" Text=""></asp:Label>
                              </div>
                              <%} %>
					        <div style="margin-bottom:10px"></div>
				        </div>
			        </div>			
			        <div id="group_5">
				    <Quangcaophai:qcPHAI ID="Quangcaophai" runat="server" />
			        <!--B khong gian song-->					
			        <KhongGianSong:KGS ID="KhongGianSong" runat="server" />
	                <!--e khong gian song-->			
			        </div>
		        </div>
	        </div>	
	        <MenuFooter:MN ID="MenuFooter" runat="server" />
	        <Footer:FT ID="Footer" runat="server" />
        </div>
    </form>
</body>
</html>
